package com.example.demo.model;

import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;
import java.util.Date;

@Data
public class UserInfo {
    private Integer id;
    private String username;
    private String password;
    private String nickname;
    private String avatar;
    private String phone;
    private String email;
    private String address;
    private Integer status;
    private Double creditScore;
    private Date createTime;
    private Date updateTime;
    private String creditCard;

    @JsonIgnore(false)  // false表示允许接收但不序列化到数据库
    private String captcha;

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public void setNickname(Object nickname) {
        this.nickname = (String) nickname;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }
}
